package com.ld.admin.controller.system.systeminfo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ld.admin.controller.AdminBasicController;
import com.ld.admin.model.system.systeminfo.Server;

import io.swagger.annotations.Api;

@Api(tags = "服务器监控信息")
@Controller
@RequestMapping("${shieldsb.adminPath}/system/server")
public class ServerController extends AdminBasicController<Object> {

    @GetMapping()
    public String server() throws Exception {
        Server server = new Server();
        server.getInfo();
        setAttribute("server", server);
        return "a/system/server/show";
    }
}
